<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> - 用户信息</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"> <link href="/Public/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/Public/css/font-awesome.css?v=4.4.0" rel="stylesheet">

    <link href="/Public/css/animate.css" rel="stylesheet">
    <link href="/Public/css/style.css?v=4.1.0" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/Public/admin/css/gxxj/user.css">
    <link rel="stylesheet" href="/Public/admin/css/plugins/colorbox.css"/>
    <link rel="stylesheet" type="text/css" href="/Public/admin/css/gxxj/normalize.css">
    <style>
        .col-sm-2 {
            width: 28%;
        }
        .modal {
            position: fixed;
            top: 200px;
            right: 0;
            bottom: 0;
            left: 0;
            z-index: 1050;
            display: none;
            overflow: hidden;
            -webkit-overflow-scrolling: touch;
            outline: 0;
        }
    </style>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-sm-8">
            <div class="ibox">
                <div class="ibox-content">

                    <h2 style="float: left;">用户信息</h2>
                    <!--<a id="user_type1" href="<{$SRVER_NAME}>/admin.php/UserInfo/user_list_info?user=<{$user_content}>&page=<{$page}>&rid=<{$rid}>" style="margin-left: 15px;padding:5px 10px;" type="button"  class="btn btn-default btn-lg">返回</a>-->
                   <if condition="$utype eq '3'">
                       <a href="javascript:history.back(-1);" style="margin-left: 15px;padding:5px 10px;" type="button"  class="btn btn-default btn-lg">返回</a>
                   <elseif  condition="$utype neq ''"/>
                       <a  href="<{$SRVER_NAME}>/admin.php/Overdue/OverdueList?key=<{$key}>&page=<{$page1}>&rid=<{$rid}>&type=<{$utype}>" style="margin-left: 15px;padding:5px 10px;" type="button"  class="btn btn-default btn-lg">返回</a>
                   <else/>
                       <a id="user_type2" href="<{$SRVER_NAME}>/admin.php/UserCenter/user_list_info?user=<{$user_content}>&page=<{$page1}>&rid=<{$rid}>" style="margin-left: 15px;padding:5px 10px;" type="button"  class="btn btn-default btn-lg">返回</a>
                   </if>

                    <!--<a id="user_type2" href="javascript:history.back(-1);" style="margin-left: 15px;padding:5px 10px;" type="button"  class="btn btn-default btn-lg">返回</a>-->
                    <p>

                    </p>

                    <div class="clients-list">
                        <ul class="nav nav-tabs">
                            <li id="record_1"><a href="<{$SRVER_NAME}>/admin.php/UserInfo/user_list_details?vid=<{$vid}>&user_content=<{$user_content}>&user_type=1&page=<{$page}>&rid=<{$rid}>&type=1">借款记录</a></li>
                            <li id="record_2"><a href="<{$SRVER_NAME}>/admin.php/UserInfo/user_list_details?vid=<{$vid}>&user_content=<{$user_content}>&user_type=1&page=<{$page}>&rid=<{$rid}>&type=2">还款记录</a></li>
                            <li id="record_3"><a href="<{$SRVER_NAME}>/admin.php/UserInfo/user_list_details?vid=<{$vid}>&user_content=<{$user_content}>&user_type=1&page=<{$page}>&rid=<{$rid}>&type=3">逾期记录</a></li>
                            <li id="record_4"><a href="<{$SRVER_NAME}>/admin.php/UserInfo/user_list_details?vid=<{$vid}>&user_content=<{$user_content}>&user_type=1&page=<{$page}>&rid=<{$rid}>&type=4">续借记录</a></li>
                            <!--<li><a href="<{$SRVER_NAME}>/admin.php/UserInfo/user_list_details?type=5&id=<{$id}>">额度变动记录</a></li>-->
                            <li id="record_5"><a href="<{$SRVER_NAME}>/admin.php/UserInfo/user_list_details?vid=<{$vid}>&user_content=<{$user_content}>&user_type=1&page=<{$page}>&rid=<{$rid}>&type=5">连连支付记录</a></li>
                            <li  id="record_6"><a href="<{$SRVER_NAME}>/admin.php/UserInfo/user_list_details?vid=<{$vid}>&user_content=<{$user_content}>&user_type=1&page=<{$page}>&rid=<{$rid}>&type=6">支付宝支付记录</a></li>
                            <li  id="record_7"><a href="<{$SRVER_NAME}>/admin.php/UserInfo/user_list_details?vid=<{$vid}>&user_content=<{$user_content}>&user_type=1&page=<{$page}>&rid=<{$rid}>&type=7">银行卡绑定</a></li>
                            <li  id="record_8"><a href="<{$SRVER_NAME}>/admin.php/UserInfo/user_list_details?vid=<{$vid}>&user_content=<{$user_content}>&user_type=1&page=<{$page}>&rid=<{$rid}>&type=8">额度记录</a></li>
                            <li  id="record_9"><a href="<{$SRVER_NAME}>/admin.php/UserInfo/user_list_details?vid=<{$vid}>&user_content=<{$user_content}>&user_type=1&page=<{$page}>&rid=<{$rid}>&type=9">奖金记录</a></li>
                            <li  id="record_10"><a href="<{$SRVER_NAME}>/admin.php/UserInfo/user_list_details?vid=<{$vid}>&user_content=<{$user_content}>&user_type=1&page=<{$page}>&rid=<{$rid}>&type=10">提现记录</a></li>
                            <li  id="record_11"><a href="<{$SRVER_NAME}>/admin.php/UserInfo/user_list_details?vid=<{$vid}>&user_content=<{$user_content}>&user_type=1&page=<{$page}>&rid=<{$rid}>&type=11">优惠券记录</a></li>
                        </ul>
                        <div class="tab-content" style="height: 800px" id="index_cont">
                            <div  class="tab-pane active">
                                <div class="full-height-scroll">
                                    <div class="table-responsive">
                                        <br>
                                        <!--借款记录-->
                                        <if condition="($type eq '1')">
                                            <table width="100%" cellspacing="0" cellpadding="0" class="search_table">
                                                <thead>
                                                <tr>
                                                    <th>借款单号</th>
                                                    <th >借款金额</th>
                                                    <th>借款日期</th>
                                                    <th >到账时间</th>
                                                    <th >应还款时间</th>
                                                    <th >借款天数</th>
                                                    <th >打款状态</th>
                                                    <th >还款状态</th>
                                                    <th >借款类型</th>

                                                </tr>
                                                </thead>

                                                <tbody>
                                                <volist name="data" id="vo" key="i">
                                                    <tr>
                                                        <td><{$vo.borrow_no}></td>
                                                        <td><{$vo.money}></td>
                                                        <td><{$vo.ctime}></td>
                                                        <td><{$vo.get_time}></td>
                                                        <td><{$vo.repay_time}></td>
                                                        <td style=""><{$vo.type}></td>
                                                        <td><{$vo.is_success}></td>
                                                        <td><{$vo.status}></td>
                                                        <td><{$vo.borrow_type}></td>

                                                    </tr>
                                                </volist>
                                                </tbody>
                                            </table>
                                        </if>
                                        <!--还款记录-->
                                        <if condition="($type eq '2')">
                                            <table width="100%" cellspacing="0" cellpadding="0" class="search_table">
                                                <thead>
                                                <tr>
                                                    <th>借款订单号</th>
                                                    <th>还款金额</th>
                                                    <th>部分还款</th>
                                                    <th>应还款续借</th>
                                                    <th>应还款手续费</th>
                                                    <th>应还款时间</th>
                                                    <th>实际还款时间</th>
                                                    <th>还款类型</th>
                                                    <th>天数</th>
                                                    <th>状态</th>
                                                    <th>操作</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <volist name="data" id="vo" key="i">
                                                    <tr>
                                                        <td><{$vo.borrow_no}></td>
                                                        <td><{$vo.repay_money}></td>
                                                        <td><{$vo.have_repay_money}></td>
                                                        <td><{$vo.renewal_money}></td>
                                                        <td><{$vo.fee}></td>
                                                        <td><{$vo.repay_time}></td>
                                                        <td><{$vo.real_time}></td>
                                                        <td><{$vo.type}></td>
                                                        <td><{$vo.day}></td>
                                                        <td><{$vo.status}></td>
                                                        <if condition="$vo.pay_status eq '1'">
                                                            <td> <a  onclick="wx_pay('<{$vo.repayment_no}>')" class="btn btn-xs btn-primary"> 微信还款 </a></td>

                                                        </else>
                                                            <td><a href=""> </a></td>
                                                        </if>

                                                    </tr>
                                                </volist>
                                                </tbody>
                                            </table>
                                        </if>
                                        <!--逾期记录-->
                                        <if condition="($type eq '3')">
                                            <table width="100%" cellspacing="0" cellpadding="0" class="search_table">
                                                <thead>
                                                <tr>
                                                    <th>逾期订单号</th>
                                                    <th>应还款时间</th>
                                                    <th>逾期天数</th>
                                                    <th>逾期罚金</th>
                                                    <th>还款时间</th>
                                                    <th>状态</th>
                                                    <th>已减罚金</th>
                                                    <th>操作</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <volist name="data" id="vo" key="i">
                                                    <tr>
                                                        <td><{$vo.repayment_no}></td>
                                                        <td><{$vo.should_time}></td>
                                                        <td><{$vo.overdue_day}></td>
                                                        <td><{$vo.overdue_money}></td>
                                                        <td><{$vo.overdue_time}></td>
                                                        <td><{$vo.status}></td>
                                                        <td><{$vo.reduce_money}></td>
                                                        <td>
                                                            <a href="javascript:;" class="look_more" onclick="show_fine('<{$vo.id}>')">罚金信息</a>
                                                        </td>
                                                    </tr>
                                                </volist>
                                                </tbody>
                                            </table>
                                        </if>
                                        <!--续借记录-->
                                        <if condition="($type eq '4')">
                                            <table width="100%" cellspacing="0" cellpadding="0" class="search_table">
                                                <thead>
                                                <tr>
                                                    <th>还款订单号</th>
                                                    <th >续借订单号</th>
                                                    <th>所借金额</th>
                                                    <th >续期费用</th>
                                                    <th >类型</th>
                                                    <th >续借天数</th>
                                                    <th >支付类型</th>
                                                    <th >创建时间</th>
                                                    <th>状态</th>

                                                </tr>
                                                </thead>
                                                <tbody>
                                                <volist name="data" id="vo" key="i">
                                                    <tr>
                                                        <td><{$vo.repayment_no}></td>
                                                        <td><{$vo.orderno}></td>
                                                        <td><{$vo.repay_money}></td>
                                                        <td><{$vo.money}></td>
                                                        <td><{$vo.type}></td>
                                                        <td><{$vo.changetime}></td>
                                                        <td><{$vo.pay_type}></td>
                                                        <td><{$vo.ctime}></td>
                                                        <td><{$vo.status}></td>
                                                    </tr>
                                                </volist>
                                                </tbody>
                                            </table>
                                        </if>

                                        <!--练练支付记录-->
                                        <if condition="($type eq '5')">
                                            <table width="100%" cellspacing="0" cellpadding="0" class="search_table">
                                                <thead>
                                                <tr>
                                                    <th >商户订单</th>
                                                    <th >金额</th>
                                                    <th>连连支付订单</th>
                                                    <th>实际到账金额</th>
                                                    <th>实际到账时间</th>
                                                    <th>返回信息</th>
                                                    <th>到账状态</th>
                                                    <th>类型</th>
                                                    <th>创建时间</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <volist name="data" id="vo" key="i">
                                                    <tr>
                                                        <td><{$vo.orderno}></td>
                                                        <td><{$vo.money}></td>
                                                        <td ><{$vo.llzf_orderno}></td>
                                                        <td><{$vo.real_money}></td>
                                                        <td><{$vo.real_time}></td>
                                                        <td><{$vo.content}></td>
                                                        <td><{$vo.status}></td>
                                                        <td><{$vo.type}></td>
                                                        <td><{$vo.ctime}></td>
                                                    </tr>
                                                </volist>
                                                </tbody>
                                            </table>
                                        </if>

                                        <!--支付宝支付记录-->
                                        <if condition="($type eq '6')">
                                            <table width="100%" cellspacing="0" cellpadding="0" class="search_table">
                                                <thead>
                                                <tr>
                                                    <th >关联订单号</th>
                                                    <th >金额</th>
                                                    <th>支付宝订单</th>
                                                    <th>返回信息</th>
                                                    <th>到账状态</th>
                                                    <th>订单类型</th>
                                                    <th>创建时间</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <volist name="data" id="vo" key="i">
                                                    <tr>
                                                        <td><{$vo.orderno}></td>
                                                        <td><{$vo.money}></td>
                                                        <td ><{$vo.alipay_orderno}></td>
                                                        <td><{$vo.content}></td>
                                                        <td><{$vo.status}></td>
                                                        <td><{$vo.type}></td>
                                                        <td><{$vo.ctime}></td>
                                                    </tr>
                                                </volist>
                                                </tbody>
                                            </table>
                                        </if>
                                        <!--银行卡绑定记录-->
                                        <if condition="($type eq '7')">
                                            <table width="100%" cellspacing="0" cellpadding="0" class="search_table">
                                                <thead>
                                                <tr>
                                                    <th>银行卡名称</th>
                                                    <th>银行卡号</th>
                                                    <th>持卡人</th>
                                                    <th>手机号</th>
                                                    <th>认证状态</th>
                                                    <th>使用状态</th>
                                                    <th>创建时间</th>
                                                    <th> 操作 </th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <volist name="data" id="vo" key="i">
                                                    <tr>
                                                        <td><{$vo.bankclass}></td>
                                                        <td><{$vo.bank_card1}></td>
                                                        <td><{$vo.username}></td>
                                                        <td><{$vo.mobile}></td>
                                                        <td><{$vo.status}></td>
                                                        <td><{$vo.use_status}></td>
                                                        <td><{$vo.ctime}></td>
                                                        <td>
                                                            <a onclick="CompleteInformation('<{$vo.bank_card}>')"><span
                                                                    class="bg_color_green color_white table_span">补全签约信息</span></a>
                                                        </td>
                                                    </tr>
                                                </volist>
                                                </tbody>
                                            </table>
                                        </if>


                                        <if condition="($type eq '8')">
                                            <table width="100%" cellspacing="0" cellpadding="0" class="search_table" style="text-align: center">
                                                <thead>
                                                <tr style="font-weight: bold;">
                                                    <td>变动额度</td>
                                                    <td>修改原因</td>
                                                    <td>额度变动类型</td>
                                                    <td> 修改时间 </td>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <volist name="data" id="vo" key="i">
                                                    <tr>
                                                        <td><{$vo.money}></td>
                                                        <td><{$vo.content}></td>
                                                        <td><{$vo.type}></td>
                                                        <td><{$vo.ctime}></td>
                                                    </tr>
                                                </volist>
                                                </tbody>
                                            </table>
                                        </if>


                                        <if condition="($type eq '9')">
                                            <table width="100%" cellspacing="0" cellpadding="0" class="search_table" style="text-align: center">
                                                <thead>
                                                <tr style="font-weight: bold;">
                                                    <td>关系</td>
                                                    <td width="400px">详情</td>
                                                    <td>奖金</td>
                                                    <td>类型</td>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <volist name="data" id="vo" key="i">
                                                    <tr>
                                                        <td><{$vo.level}></td>
                                                        <td  width="400px"><{$vo.detail}></td>
                                                        <td><{$vo.bonus_money}></td>
                                                        <td><{$vo.type}></td>
                                                    </tr>
                                                </volist>
                                                </tbody>
                                            </table>
                                        </if>

                                        <if condition="($type eq '10')">
                                            <table width="100%" cellspacing="0" cellpadding="0" class="search_table" style="text-align: center">
                                                <thead>
                                                <tr style="font-weight: bold;">
                                                    <td>提现订单</td>
                                                    <td>提现金额</td>
                                                    <td>提现卡号</td>
                                                    <td>申请时间</td>
                                                    <td>申请状态</td>
                                                    <td>打款状态</td>
                                                    <td>到账时间</td>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <volist name="data" id="vo" key="i">
                                                    <tr>
                                                        <td><{$vo.orderno}></td>
                                                        <td><{$vo.money}></td>
                                                        <td><{$vo.bank_card}></td>
                                                        <td><{$vo.ctime}></td>
                                                        <td><{$vo.status}></td>
                                                        <td><{$vo.is_success}></td>
                                                        <td><{$vo.get_time}></td>
                                                    </tr>
                                                </volist>
                                                </tbody>
                                            </table>
                                        </if>


                                        <if condition="($type eq '11')">
                                            <table width="100%" cellspacing="0" cellpadding="0" class="search_table" style="text-align: center">
                                                <thead>
                                                <tr style="font-weight: bold;">
                                                    <td>优惠券编号</td>
                                                    <td>优惠名称</td>
                                                    <td>发放时间</td>
                                                    <td>有效期至</td>
                                                    <td>抵扣金额</td>
                                                    <td>状态</td>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <volist name="data" id="vo" key="i">
                                                    <tr>
                                                        <td><{$vo.coupon_id}></td>
                                                        <td><{$vo.name}></td>
                                                        <td><{$vo.ctime}></td>
                                                        <td><{$vo.endtime}></td>
                                                        <td><{$vo.money}></td>
                                                        <td><{$vo.status}></td>
                                                    </tr>
                                                </volist>
                                                </tbody>
                                            </table>
                                        </if>



                                        <div class="dataTables_paginate paging_simple_numbers" style="text-align: center">
                                            <ul class="pagination">
                                                <if condition="$tol gt 10">
                                                    <{$fpage}>
                                                </if>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-4">
            <div class="ibox ">

                <div class="ibox-content">
                    <div class="tab-content">
                        <div id="contact-1" class="tab-pane active">
                            <div class="row m-b-lg">
                                <div class="col-lg-4 text-center" style="display: inline-block;width: 100%">
                                    <h2 style="display: inline-block;vertical-align: middle;"><img alt="image" class="img-circle" src="<{$user.icon}>" style="width: 62px;height: 62px"><{$user.truename}>[<{$user.mobile}>] </h2> &nbsp;&nbsp;

                                    <if condition=" $_SESSION['role_id'] neq '7'" >

                                    <a href="javascript:;" class="userInfo_editbtn"  onclick="update_user('<{$vid}>')" >修改用户资料</a><br>
                                    <div class="userInfo_head_btn">
                                        <div style="display: inline-block;" class="project-people">
                                            <a href="<{$user.font}>" class="img_link userInfo_btn" data-rel="colorbox">查看认证照片</a>
                                            <a href="<{$user.behind}>" class="img_link" data-rel="colorbox"> </a>
                                        </div>
                                        <a onclick="Debit()" href="javascript:;" class="userInfo_btn">人工扣款</a>
                                        <a onclick="apply_money()" href="javascript:;" class="userInfo_btn">申请恢复额度</a>
                                        <a onclick="coupon_send('<{$vid}>')" href="javascript:;" class="userInfo_btn">优惠券派送</a>
                                        <a onclick="show('<{$vid}>')" href="javascript:;" class="userInfo_btn">取消预约借款</a>
                                        <a onclick="cancel_renew('<{$vid}>')" href="javascript:;" class="userInfo_btn" style="margin-top: 10px">取消续借</a>
                                        <a onclick="overdue_list('<{$vid}>')" href="javascript:;" class="userInfo_btn" style="margin-top: 10px">申请减免罚息</a>
                                        <!-- <a   href="javascript:;" class="userInfo_btn">人工调用运营商信息</a>-->
                                    </div>
                                    </if>
                                </div>
                            </div>
                            <div class="client-detail" style=" height: 1000px;">
                                <div class="full-height-scroll">

                                   <!-- <strong>用户信息</strong>-->

                                    <ul class="list-group clear-list">
                                        <li class="list-group-item fist-item">
                                            <span><strong>当前额度：<{$user.quota}></strong></span>
                                            <span class="pull-right">可借余额：<{$user.money}></span>
                                        </li>
                                        <li class="list-group-item fist-item">
                                            <span><strong>钱包余额：<{$user.balance}></strong></span>
                                            <span class="pull-right">冻结金额：<{$user.freeze_balance}></span>
                                        </li>
                                        <li class="list-group-item">
                                            <span style="color: #E50007;font-size: large">用户基本信息:</span>
                                        </li>

                                        <if condition="$user.user_status eq 3">

                                            <li class="list-group-item" style="height: 65px">
                                                <span style="color: black">黑用户</span>
                                                <span class="pull-right"><{$user.black_reason}></span>
                                            </li>
                                        </if>

                                        <li class="list-group-item">
                                            <span>用户姓名</span>
                                            <span class="pull-right"><{$user.truename}></span>
                                        </li>
                                        <li class="list-group-item">
                                            <span>性别</span>
                                            <span class="pull-right"><{$user.sex}></span>
                                        </li>
                                        <li class="list-group-item">
                                            <span>手机号码</span>
                                            <span class="pull-right"><{$user.mobile}></span>
                                        </li>
                                        <li class="list-group-item">
                                            <span>手机型号</span>
                                            <span class="pull-right"><{$user.mobilefirm}></span>
                                        </li>
                                        <li class="list-group-item">
                                            <span>身份证号</span>
                                            <span class="pull-right"><{$user.id_card}></span>
                                        </li>
                                        <li class="list-group-item">
                                            <span>身份证归属地</span>
                                            <span class="pull-right"><{$user.province}><{$user.city}></span>
                                        </li>
                                        <li class="list-group-item">
                                            <span>居住地址</span>
                                            <span class="pull-right"><{$user.address}></span>
                                        </li>
                                        <li class="list-group-item">
                                            <span>居住时长</span>
                                            <span class="pull-right"><{$user.residence_time}></span>
                                        </li>
                                        <li class="list-group-item">
                                            <span>婚姻状况</span>
                                            <span class="pull-right"><{$user.ismarry}></span>
                                        </li>
                                        <li class="list-group-item">
                                            <span>学历</span>
                                            <span class="pull-right"><{$user.degree}></span>
                                        </li>
                                        <li class="list-group-item">
                                            <span>创建时间</span>
                                            <span class="pull-right"><{$user.ctime}></span>
                                        </li>
                                        <li class="list-group-item">
                                            <span>等待天数</span>
                                            <span class="pull-right"><{$user.waitdays}>天</span>
                                        </li>
                                        <li class="list-group-item">
                                            <span style="color: #E50007;font-size: large">认证信息:</span>
                                        </li>

                                        <li class="list-group-item">
                                            <span>用户状态</span>
                                            <span class="pull-right"><{$user.cert_status}></span>
                                        </li>
                                        <li class="list-group-item">
                                            <span>当前审核状态</span>
                                            <span class="pull-right"><{$user.checkstatus}></span>
                                        </li>
                                        <li class="list-group-item">
                                            <span>审核类型</span>
                                            <span class="pull-right"><{$user.check_type}></span>
                                        </li>
                                        <li class="list-group-item">
                                            <span>运营商认证</span>
                                            <span class="pull-right"><{$user.mobile_verify}></span>
                                        </li>

                                        <li class="list-group-item">
                                            <span>芝麻认证</span>
                                            <span class="pull-right"><{$user.zhima_verify}></span>
                                        </li>

                                        <li class="list-group-item">
                                            <span>支付宝认证</span>
                                            <span class="pull-right"><{$user.alipay_verify}></span>
                                        </li>

                                        <li class="list-group-item">
                                            <span><a href="javascript:;" >工作认证</a></span>
                                            <!--<span><a href="javascript:;" onclick="work_cert()">工作认证</a></span>-->
                                            <span class="pull-right"><{$user.work_verify}></span>
                                        </li>
                                        <li class="list-group-item">
                                            <span>信用卡认证</span>
                                            <span class="pull-right"><{$user.credit_verify}></span>
                                        </li>
                                        <li class="list-group-item">
                                            <span>京东认证</span>
                                            <span class="pull-right"><{$user.jd_verify}></span>
                                        </li>

                                        <li class="list-group-item">
                                            <span>淘宝认证</span>
                                            <span class="pull-right"><{$user.taobao_verify}></span>
                                        </li>

                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 全局js -->
<script src="/Public/js/jquery.min.js?v=2.1.4"></script>
<script src="/Public/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/Public/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="/Public/js/content.js?v=1.0.0"></script>
<script src="/Public/admin/js/plugins/jquery.colorbox-min.js"></script>
<script src="/Public/admin/js/layer/layer.js"></script>
<script src="/Public/admin/js/layui/layui.js"></script>
<script src="/Public/admin/js/common1.js"></script>
<script type="text/javascript">
  /*  $(document).ready(function () {
        var user_type='<{$user_type}>';
        if(user_type==1){
            document.getElementById('user_type1').style.display='';
            document.getElementById('user_type2').style.display='none';
        }else {
            document.getElementById('user_type1').style.display='none';
            document.getElementById('user_type2').style.display='';
        }
    })*/

    jQuery(function ($) {
        colorbox_params = {
            reposition: true,
            scalePhotos: true,
            scrolling: false,
            previous: '<i class="fa fa-chevron-left"></i>',
            next: '<i class="fa fa-chevron-right"></i>',
            close: '&times;',
            current: '{current} of {total}',
            maxWidth: '50%',
            maxHeight: '50%',
            onOpen: function () {
                document.body.style.overflow = 'hidden';
            },
            onClosed: function () {
                document.body.style.overflow = 'auto';
            },
            onComplete: function () {
                $.colorbox.resize();
            }
        };

        $('.Info_style [data-rel="colorbox"]').colorbox(colorbox_params);
        $('.project-people [data-rel="colorbox"]').colorbox(colorbox_params);
        $("#cboxLoadingGraphic").append("<i class='icon-spinner orange'></i>");
    });

    $(function () {
        var type="<{$type}>";
        if(type==1){
            $("#record_1").addClass('active');
        }else    if(type==2){
            $("#record_2").addClass('active');
        }else   if(type==3){
            $("#record_3").addClass('active');
        }else   if(type==4){
            $("#record_4").addClass('active');
        }else   if(type==5){
            $("#record_5").addClass('active');
        }else if(type==6){
            $("#record_6").addClass('active');
        }else if(type==7){
            $("#record_7").addClass('active');
        }else if(type==8){
            $("#record_8").addClass('active');
        }else if(type==9){
            $("#record_9").addClass('active');
        }else if(type==10){
            $("#record_10").addClass('active');
        }else if(type==11){
            $("#record_11").addClass('active');
        }
    });


  //银行卡信息补全
  function CompleteInformation(id) {
      var index = layer.load(1, {
          shade: [0.1, '#fff'] //0.1透明度的白色背景
      });
      var vid = "<{$vid}>";
      var url = "<{$SRVER_NAME}>/admin.php/UserInfo/CompleteInformation";

      layer.alert("确定补全", {title: '提示框', icon: 3}, function (index) {
          $.post(url,  {vid: vid, bank_card: id}, function (data) {

              if (data.code == "1001") {
                  layer.alert(data.result);
              } else {
                  layer.alert(data.result);
              }
          });
          layer.close(index);
      });
      layer.close(index);
  }

    function editUserInfo(vid,name,card) {
        $("#vid_val").val(vid);
        $("#name_show").val(name);
        $("#card_show").val(card);
    }

    function user_edit() {

        var index = layer.load(1, {
            shade: [0.1, '#fff'] //0.1透明度的白色背景
        });
        var vid= $("#vid_val").val()
        var name=$("#name_show").val();
        var card=$("#card_show").val();
        var url= "<{$SRVER_NAME}>/admin.php/UserInfo/user_edit";
        var tourl= "<{$SRVER_NAME}>/admin.php/UserInfo/user_list_info";
        if(name=="" || card==""){
            layer.close(index);
            layer.alert("请信息填写完整！\r\n", {
                title: '提示框',
                icon: 0,
            });
            return false;
        }

        layer.alert("确定修改？", {title: '提示框', icon: 1}, function () {

            $.post(url, {vid: vid, name:name,card:card}, function (data) {
                if (data.code == "1001") {
                    layer.alert(data.result, {title: '提示框', icon: 1}, function () {
                        window.location.href =  "";
                        layer.close(index);
                    });
                }
                else {
                    layer.alert(data.result, {title: '提示框', icon: 2});
                    layer.close(index);
                }

            });
            layer.close(index);
        });
    }

    //工作认证信息
    function work_cert() {
        var vid="<{$vid}>";

        layer.open({
            title:'预约借款状态',
            type: 2,
            area: ['80%', '80%'],
            maxmin: true,
            offset:'100px',
            content: '<{$SRVER_NAME}>/admin.php/UserInfo/work_cert.html?vid='+vid,
            success: function(layero){
                layero.find('.layui-layer-min').remove();
            }
        });

    }




    //取消预约
    function show(id){
        layer.open({
            title:'预约借款状态',
            type: 2,
            area: ['80%', '80%'],
            maxmin: true,
            offset:'100px',
            content: '<{$SRVER_NAME}>/admin.php/UserInfo/user_debt.html?id='+id,
            success: function(layero){
                layero.find('.layui-layer-min').remove();
            }
        });
    }
  //取消续借
  function cancel_renew(id) {
        console.log('1212121',id);
      layer.open({
          title: '可取消续借列表',
          type: 2,
          area: ['80%', '80%'],
          maxmin: true,
          offset: '100px',
          content: '<{$SRVER_NAME}>/admin.php/UserInfo/user_cancel_renew.html?id=' + id,
          success: function (layero) {
              layero.find('.layui-layer-min').remove();
          }
      });
  }

  function show_fine(id){
        layer.open({
            title:'预约借款状态',
            type: 2,
            area: ['1200px', '650px'],
            maxmin: true,
            offset:'100px',
            content: '<{$SRVER_NAME}>/admin.php/UserInfo/user_fine.html?id='+id,
            success: function(layero){
                layero.find('.layui-layer-min').remove();
            }
        });
    }
  function coupon_send(id) {
      var index = layer.load(1, {
          shade: [0.1, '#fff'] //0.1透明度的白色背景
      });
      var url = "<{$SRVER_NAME}>/admin.php/UserInfo/coupon_send";

      layer.alert("确定赠送亲亲券（即20元永久无门槛优惠券）", {title: '提示框', icon: 3}, function (index) {
          $.post(url, {vid: id}, function (data) {

              if (data.code == "1001") {
                  layer.alert("赠送成功");
              } else {
                  layer.alert(data.result);
              }
          });
          layer.close(index);
      });
      layer.close(index);

  }

    //优惠券 派送
    function coupon_send1(vid) {
        layer.open({
            title: '优惠券派送',
            type: 2,
            area: ['70%', '70%'],
            maxmin: true,
            offset: '100px',
            content: '<{$SRVER_NAME}>/admin.php/UserInfo/coupon_list.html?vid=' + vid,
            success: function (layero) {
                layero.find('.layui-layer-min').remove();
            }
        });
    }

    //人工扣款
    function Debit() {
        var vid = "<{$vid}>";
        var url = "<{$SRVER_NAME}>/admin.php/UserInfo/Debit";
        var index = layer.load(1, {
            shade: [0.1, '#fff'] //0.1透明度的白色背景
        });
        $.post(url, {vid: vid}, function (data) {

            if (data.code == "1001") {
                layer.alert(data.result, {title: '提示框', icon: 1}, function () {
                    layer.close(index);
                });
            }
            else {
                layer.alert(data.result, {title: '提示框', icon: 2});
                layer.close(index);
            }

        });
        layer.close(index);
    }

  //额度恢复申请
  function apply_money() {
      var vid = "<{$vid}>";
      var url_result = "<{$SRVER_NAME}>/admin.php/UserInfo/apply_result";
      var url_apply = "<{$SRVER_NAME}>/admin.php/UserInfo/apply_recheck";

      $.post(url_result, {vid: vid}, function (data) {
          if (data.code == "1001") {
              layer.alert(data.result, {title: '提示框', icon: 1}, function (index) {
                  layer.close(index);
              });
          }
          else if (data.code == "1002") {// 没有申请过

              layer.open({
                  title: '用户申请恢复额度',
                  type: 2,
                  area: ['80%', '80%'],
                  maxmin: true,
                  offset: '100px',
                  content: '<{$SRVER_NAME}>/admin.php/UserInfo/user_apply_money.html?vid=' + vid,
                  success: function (layero) {
                      layero.find('.layui-layer-min').remove();
                  }
              });

          } else if (data.code == "1003") {// 被驳回 重申请

              layer.confirm(data.result, {
                  btn: ['重新申请', '取消'] //按钮
              }, function () {
//                    url_apply= url_apply+'?type=2';//type=2 说明是重新申请
                  applay(url_apply, vid);
                  layer.msg('的确很重要', {icon: 1});
              }, function () {
                  layer.close(index);
//                    layer.msg('也可以这样', {
//                        time: 20000, //20s后自动关闭
//                        btn: ['明白了', '知道了']
//                    });
              });


//                layer.alert(data.result, {title: '提示框', icon: 3});
//                layer.close(index);
          }
      });
      layer.close(index);

  }

  // 额度恢复申请
  function applay(url_apply, vid) {
      $.post(url_apply, {vid: vid}, function (data) {
          if (data.code == "1001") {
              layer.alert(data.result, {title: '提示框', icon: 1}, function (index) {

                  layer.close(index);
              });
          } else {
              layer.alert(data.result, {title: '提示框', icon: 2});
              layer.close(index);

          }
      });
  }

  function update_user(vid){
      layer.open({
          title: '用户信息修改',
          type: 2,
          area: ['70%', '70%'],
          maxmin: true,
          offset: '100px',
          content: '<{$SRVER_NAME}>/admin.php/UserCenter/user_update.html?vid=' + vid,
          success: function (layero) {
              layero.find('.layui-layer-min').remove();
          }
      });
  }

  function overdue_list(id) {
      layer.open({
          title: '可申请减免逾期订单',
          type: 2,
          area: ['80%', '80%'],
          maxmin: true,
          offset: '100px',
          content: '<{$SRVER_NAME}>/admin.php/UserInfo/overdue_list.html?vid=' + id,
          success: function (layero) {
              layero.find('.layui-layer-min').remove();
          }
      });
  }

  function loselay() {
      layer.closeAll();
  }
  
  //微信支付
    function wx_pay(repayment_no) {
        var index = layer.load(1, {
            shade: [0.1, '#fff'] //0.1透明度的白色背景
        });
        var vid="<{$vid}>";
        var url_apply="<{$SRVER_NAME}>/admin.php/UserInfo/wx_pay";
        $.post(url_apply, {vid: vid,repayment_no:repayment_no}, function (data) {
            if (data.code == "1001") {
           var codeImgUrl=data['result'].codeImgUrl;
           var codeUrl=data['result'].codeUrl;

                layer.open({
                    title: '微信支付',
                    type: 2,
                    area: ['40%', '50%'],
                    maxmin: true,
                    offset: '100px',
                    content: '<{$SRVER_NAME}>/admin.php/UserCenter/wx_pay_view.html?picurl=' + codeImgUrl+"&url="+codeUrl,
                    success: function (layero) {
                        layero.find('.layui-layer-min').remove();
                    }
                });

            } else {
//                layer.open({
//                    title: '微信支付',
//                    type: 2,
//                    area: ['40%', '40%'],
//                    maxmin: true,
//                    offset: '100px',
//                    content: '<{$SRVER_NAME}>/admin.php/UserInfo/wx_pay_view.html?picurl=' + picurl+"&url="+codeUrl,
//                    success: function (layero) {
//                        layero.find('.layui-layer-min').remove();
//                    }
//                });
                layer.alert(data.result, {title: '提示框', icon: 1});
            }
        });
        layer.close(index);

    }
</script>
</body>

</html>
